<?php
namespace app\model\user;

use think\Model;

class ZxlKnowStoreUserDistributionLogModel extends Model
{
    protected $name = 'zxl_know_store_user_distribution_log';

    /**
     * 收益状态
     */
    public static function getStatus($key=''){
        $type = [
            '0' => '待结算',
            '1' => '已结算',
            '2' => '已退款',
        ];
        if('' !== $key){
            if(array_key_exists($key,$type)){
                return $type[$key];
            }
            return false;
        }
        return $type;
    }
}